package oa.hleast.common.base;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @author 302
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseSysMenu {

    /**
     * 是否创建菜单
     */
    private Integer createMenu;

//    @NotNull(message = "父级菜单parentId不能为空")
    private Long parentId;

    @NotNull(message = "名称不能为空")
    private String name;

    private String path;

    private String component;

    private Integer sort;

    private String redirect;

    private Long menuId;
}
